package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import dao.GoodsDAO;
import entity.Criteria;
import entity.Goods;
import entity.UserFootCriteria;
import entity.UserFootGoods;
import service.GoodsService;

@Component //创建对象
public class GoodsServiceImpl implements GoodsService{

	@Autowired//注入
	private GoodsDAO dao;
	
	@Override
	public List<Goods> findGoodsCriteria(Criteria cr) {
		// TODO Auto-generated method stub
		return dao.findGoodsCriteria(cr);
	}

	@Override
	public Integer getCount() {
		// TODO Auto-generated method stub
		return dao.getCount();
	}

	@Override
	public List<UserFootGoods> selectUserFoot(UserFootCriteria cr) {
		// TODO Auto-generated method stub
		return dao.selectUserFoot(cr);
	}

}
